#define _CRT_SECURE_NO_WARNINGS 1
int main(void)
{
    double c = 0.0;
    scanf("%lf", &c);
    printf("%.3lf", 5.0 / 9 * (c - 32));
    return 0;
}
